Skip to content

PRG-08: DingTalk reconnect (from #341)#369

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:prg/08-dingtalk-reconnect__from-p341
Open

PRG-08: DingTalk reconnect (from #341)#369
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:prg/08-dingtalk-reconnect__from-p341

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 10, 2026

This regrouped PR carries forward original PR #341.\n\nScope: DingTalk auto-reconnect behavior.

Wrap the DingTalk Stream client run loop with retry logic so dropped
connections are automatically re-established instead of silently dying.

- Max 5 retries per client with delays of 2s, 5s, 15s, 30s, 60s
- Log each reconnection attempt and permanent failure
- Use stop_event.wait() for backoff so graceful shutdown is immediate

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant